<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>任务管理</title>
    <meta content="webkit" name="renderer"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <meta
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
            name="viewport"
    />
    <link href="../js/layui/css/layui.css" media="all" rel="stylesheet"/>
    <link href="../style/admin.css" media="all" rel="stylesheet"/>
    <link href="../style/home.css" media="all" rel="stylesheet"/>
    <script src="../js/layui/layui.js"></script>
    <style type="text/css">
        .layui-input {
            height: 28px;
            font-size: 14px
        }

        .layui-form-select dl {
            font-size: 14px
        }

        .layui-layout-right {
            margin: 5px 10px 0 0;
        }
    </style>
</head>
<body layadmin-themealias="default">
<div class="layui-card" style="height: 100%">
    <div class="layui-card-header font20">
        <div class="layui-title">任务管理</div>
        <div class="layui-layout-right" style="font-size: 12px;">
            <div style="float: left; margin-right: 10px">
                <button class="layui-btn layui-btn-normal layui-btn-sm" lay-on="newTask" type="button">
                    <i class="layui-icon layui-icon-file"></i>新增任务
                </button>
            </div>
            <div style="float: left; margin-top:2px; width: 300px">
                <form class="layui-form" lay-filter="projectData" action="" id="projectData">
                    <select name="projectList" id="projectList" lay-filter="projectList" lay-verify="required"
                            style="color: #0C0C0C">
                        <option
                                th:each="project : ${projectsList}"
                                th:value="${project.id}" th:text="${project.name}">
                        </option>
                    </select>
                </form>
            </div>
        </div>
    </div>
    <div class="layui-card-body">
        <table id="dataTable" lay-filter="dataTable"></table>
    </div>
</div>

<script id="operationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit"><i class="layui-icon layui-icon-edit p3" title="编辑"></i></a>
    <a lay-filter="del" href="#" lay-event="del"><i class="layui-icon layui-icon-delete p3" title="删除"></i></a>
    <a lay-filter="start" href="#" lay-event="start">
        <i class="layui-icon layui-icon-triangle-r p3" title="启动任务"></i>
    </a>
    <a lay-filter="finish" href="#" lay-event="finish">
        <i class="layui-icon layui-icon-logout p3" title="完成任务" style="font-size: 15px; padding-right: 3px;"></i>
    </a>
    <a lay-filter="taskWork" href="#" lay-event="taskWork">
        <i class="layui-icon layui-icon-form p3" title="流程设置" style="padding-right: 4px;"></i>
    </a>
    <a lay-filter="taskInfo" href="#" lay-event="taskInfo">
        <i class="layui-icon layui-icon-tabs p3" title="任务信息" style="font-size: 14px;"></i>
    </a>
</script>
<script type="text/html" id="statusTpl">
    {{# if (d.status=='0') { }}
    未启动
    {{# } else if (d.status=='1') { }}
    已启动
    {{# } else if (d.status=='2') { }}
    已完成
    {{# } }}
</script>
<script type="text/html" id="taskmodelTpl">
    {{#  if (d.taskModel=='1') { }}
    文书档案
    {{# } else if (d.taskModel=='2') { }}
    诉讼档案
    {{# } else if (d.taskModel=='3') { }}
    客户档案
    {{# } }}
</script>
<script type="text/html" id="fillingModelTpl">
    {{#  if (d.fillingModel=='1') { }}
    按件归档
    {{# } else if (d.fillingModel=='2') { }}
    按卷归档
    {{# } else if (d.fillingModel=='3') { }}
    按项目归档
    {{# } }}
</script>

<script type="text/html" id="startTpl">
    {{# if (d.isstart=='1') { }}
    <i class="layui-icon layui-icon-ok"></i>
    {{# } }}
</script>
<script type="text/javascript" src="../js/lib/common.js"></script>
<script type="text/javascript" src="../js/lib/watermark.js"></script>
<script>
    loadScript("../js/modules/project/taskInfo.js");
</script>
</body>
</html>
